package top.continew.admin.generator.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 处理转派请求
 */
@Data
@Schema(description = "处理转派请求")
public class TransferHandleReq {

    /**
     * 转派记录ID
     */
    @Schema(description = "转派记录ID", example = "1")
    @NotNull(message = "转派记录ID不能为空")
    private Long transferId;

    /**
     * 导入批次ID
     */
    @Schema(description = "导入批次ID", example = "1")
    private String batchId;

    /**
     * 处理结果：2-接受，3-退回
     */
    @Schema(description = "处理结果：2-接受，3-退回", example = "2")
    @NotNull(message = "处理结果不能为空")
    private Integer handleResult;

    /**
     * 接收人ID（接受时必填）
     */
    @Schema(description = "接收人ID", example = "123")
    private Long receiverId;

    /**
     * 退回原因（退回时必填）
     */
    @Schema(description = "退回原因", example = "当前无法处理此任务")
    @Size(max = 500, message = "退回原因长度不能超过 {max} 个字符")
    private String rejectReason;
}